package edu.rpi.cs.android;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.ArrayAdapter;
import android.widget.Button;
import android.widget.ListView;

public class transview2 extends Activity{
	Transactions tr = new Transactions();
	public void onCreate(Bundle icicle) {
        super.onCreate(icicle);
        setContentView(R.layout.listoftrans);
        tr.addTransaction("second",200);
        ListView listtrans = (ListView) findViewById(R.id.translist);
        ArrayAdapter<String> adpt;
        adpt = new ArrayAdapter<String>(this,android.R.layout.simple_list_item_1,tr.dispTrans);
        listtrans.setAdapter(adpt);
}
}
